#include <iostream>
#include <vector>

using namespace std;


class Line
{
public:
    Line() : x(new double(5)) {}
    // err
    // Line(const Line& line) : x(line.x) {}
    Line(const Line& line) : x(new double) { *x = *line.x; }
    ~Line() { delete x; }

private:
    double *x;
};

int main(int argc, char* argv[])
{
    Line l1;
    Line l2(l1);

    return 0;
}